<div class="global-header">
  <div class="w-global clear">
    <a href="" class="logo"></a>
    <div class="head-nav">
      <ul>
        <li  {if !isset($catid)} class="active" {/if}><a href="{SITE_URL}">首页</a></li>
        {m:nav field="catid,catname,arrchildid,pclink,target" where="parentid=0" limit="20"}
        {loop $data $v}
            <li  {if isset($catid) && in_array($catid, explode(',', $v['arrchildid']))} class="active" {/if}>
            <a href="{$v[pclink]}" target="{$v[target]}">{$v[catname]}</a>
          </li>		
        {/loop}	
      </ul>
    </div>
    <form
      method="get"
      action="{U('search/index/init')}"
      target="_blank"
      class="search"
    >
      <div id="searchtxt" class="searchtxt">
        <input type="hidden" name="modelid" value="0" id="modelid" />
        <input name="q" type="text" placeholder="输入关键字" />
      </div>
      <div class="searchbtn">
        <button id="searchbtn" type="submit">搜索</button>
      </div>
    </form>
  </div>
</div>
<div class="w-global">
